Expand description
§Pkarr
Rust implementation of Pkarr.
Publish and resolve DNS packets over Mainline DHT.
§Get started
Check the Examples.
§Feature flags
dht
(enabled by default) — Use PkarrClientrand
(enabled by default) — Use Keypair::randomasync
— Use async versions of PkarrClient and/or PkarrRelayClientrelay
— Use PkarrRelayClientfull
— Use all features
Re-exports§
pub use bytes;
pub use simple_dns as dns;
pub use mainline;
Structs§
- A thread safe wrapper around
LruCache
- Ed25519 keypair to sign dns Packets.
- Pkarr client for publishing and resolving SignedPackets over mainline.
- Async version of PkarrClient
- Builder for PkarrClient
- Pkarr client for publishing and resolving SignedPackets over relays.
- Ed25519 public key to verify a signature over dns Packets.
- PkarrRelayClient’s settings
- PkarrClient’s settings
- Signed DNS packet
Enums§
- Pkarr crate error enum.
Constants§
- Default cache size: 1000
- Default maximum TTL: 24 hours
- Default minimum TTL: 5 minutes
Traits§
Functions§
- Return the number of microseconds since SystemTime::UNIX_EPOCH
Type Aliases§
- The sha1 hash of the crate::PublicKey used as the key in PkarrCache.